﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace MechServer.Objects.Components.BodyParts
{
	public abstract class BaseBodyPart : MechServer.Objects.Components.BaseComponent
	{
		public BaseBodyPart() : base()
		{
			BaseComponentType = MechServer.Objects.Components.Enums.Category.BodyPart;
		}

		protected Enums.Category	_baseBodyPartType;
		protected int					_maxArmorHitPoints;
		protected int					_currentArmorHitPoints;
		protected int					_maxInnerHitPoints;
		protected int					_currentInnerHitPoints;
		protected Enums.Status		_status;

		#region Properties

		public Enums.Category BaseBodyPartType
		{
			get
			{
				return _baseBodyPartType;
			}
			set
			{
				_baseBodyPartType = value;
			}
		}

		public int MaxArmorHitPoints
		{
			get
			{
				return _maxArmorHitPoints;
			}
			set
			{
				_maxArmorHitPoints = value;
			}
		}

		public int CurrentArmorHitPoints
		{
			get
			{
				return _currentArmorHitPoints;
			}
			set
			{
				_currentArmorHitPoints = value;
			}
		}

		public int MaxInnerHitPoints
		{
			get
			{
				return _maxInnerHitPoints;
			}
			set
			{
				_maxInnerHitPoints = value;
			}
		}

		public int CurrentInnerHitPoints
		{
			get
			{
				return _currentInnerHitPoints;
			}
			set
			{
				_currentInnerHitPoints = value;
			}
		}

		public Enums.Status Status
		{
			get
			{
				return _status;
			}
			set
			{
				_status = value;
			}
		}

		#endregion
	}
}
